package com.es.www;

import java.util.Collections;

/**
 * @Created by michangtao
 * @Date 2022/5/24 10:51
 * @Description
 */
public class Client {

    public static void main(String[] args) {
        Context context = new Context();
        OrderState orderState = new OrderState();
        context.setState(orderState);
        context.doAction();

        PayState payState = new PayState();
        context.setState(payState);
        context.doAction();

        ShipState shipState = new ShipState();
        context.setState(shipState);
        context.doAction();
    }
}
